<!doctype html>
<html lang="en" xmlns:th="http://thymeleaf.org">
<head th:replace="common/htmlHead :: common_header(~{::title})">
    <title>重置密码</title>
</head>
<body>
<!-- loader Start -->
<div id="loading">
    <div id="loading-center">
    </div>
</div>
<!-- loader END -->
<!-- Sign in Start -->
<section class="sign-in-page">
    <div class="container sign-in-page-bg mt-5 p-0">
        <div class="row no-gutters">
            <div class="col-md-6 text-center">
                <div class="sign-in-detail text-white">
                    <a class="sign-in-logo mb-5" href="#"><img src="images/logo-white.png" class="img-fluid" alt="logo"></a>
                    <div class="owl-carousel" data-autoplay="true" data-loop="true" data-nav="false" data-dots="true"
                         data-items="1" data-items-laptop="1" data-items-tab="1" data-items-mobile="1"
                         data-items-mobile-sm="1" data-margin="0">
                        <div class="item">
                            <img src="images/login/1.png" class="img-fluid mb-4" alt="logo">
                            <h4 class="mb-1 text-white">Tips</h4>
                            <p>保持开心</p>
                        </div>
                        <div class="item">
                            <img src="images/login/2.png" class="img-fluid mb-4" alt="logo">
                            <h4 class="mb-1 text-white">Tips</h4>
                            <p>不要熬夜</p>
                        </div>
                        <div class="item">
                            <img src="images/login/3.png" class="img-fluid mb-4" alt="logo">
                            <h4 class="mb-1 text-white">Tips</h4>
                            <p>定期运动</p>
                        </div>
                    </div>
                </div>
            </div>

            <div class="col-md-6 position-relative">
                <div class="sign-in-from">
                    <h1 class="mb-0">重置密码</h1>
                    <p>请输入您的邮箱地址，稍后会发送一封电子邮件，里面有验证码！</p>
                    <form class="mt-4" th:action="@{/recPwEmail}" method="post">
                        <div class="form-group">
                            <label for="exampleInputEmail1">邮箱</label>
                            <input type="email" name="Email" class="form-control mb-0" id="exampleInputEmail1"
                                   placeholder="Email" required>
                        </div>
                        <div class="d-inline-block w-100">
                            <span th:text="${info}" th:style="${info == '验证码发送成功！'} ?'color:green' : 'color:red'"></span>
                            <button type="submit" class="btn btn-primary float-right">发送验证码</button>
                        </div>
                    </form>


                    <form class="mt-4" th:action="@{/recPw}" method="post">
                            <input th:value="${session.Email}" name="Email" type="hidden">
                        <div class="form-group">
                            <label for="exampleInputEmail2">验证码</label>
                            <input type="text" name="token" class="form-control mb-0" id="exampleInputEmail2"
                                   th:placeholder="${error == '验证码错误！'}?'验证码错误！':'请输入验证码！'" required>
                        </div>
                        <div class="form-group">
                            <label for="exampleInputPassword1">新密码</label>
                            <input type="password" name="Password" class="form-control mb-0" id="exampleInputPassword1"
                                   placeholder="Password" required>
                        </div>

                        <div class="d-inline-block w-100">
                            <input type="button" class="btn btn-primary float-left" onclick="javascript:history.back()" value="返回"></input>
                            <!--<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>
                            <span>&nbsp;&nbsp;&nbsp;&nbsp;</span>
                            <span>&nbsp;&nbsp;&nbsp;&nbsp;</span>-->
                            <!--<span th:text="${error}" style="color: red"></span>-->
                            <button type="submit" class="btn btn-primary float-right">重置密码</button>
                        </div>
                    </form>

                </div>
            </div>
        </div>
    </div>
</section>
<!-- Sign in END -->

<!--使用公有js-->
<div th:replace="common/htmlHead::common_js(~{::script})">

</div>

</body>
</html>